package com.rj.bd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.rj.bd.entity.Admin;

/**
 * @author FTY
 * @dasc
 * @time 2021-05-31 14:10
 */

@Mapper
public interface AdminMapper {

	@Select("select * from admin")
	public List<Admin> queryAll();
  

	@Select("select * from admin where anumber=#{anumber} and apassword=#{apassword} ")
	public Admin login(@Param("anumber")String anumber, @Param("apassword")String apassword);


	
}
